Load(Stream,WicContainerFormat,Int32,Nullable<Rectangle>,BaseTransform[]) Method
In This Topic
Loads the image from a System.IO.Stream. JPEG, PNG, GIF, BMP, TIFF, ICO, JPEG XR formats are supported.
Syntax
'Declaration
Public Overloads Sub Load( _
ByVal As System.IO.Stream, _
ByVal As WicContainerFormat, _
ByVal As System.Integer, _
ByVal As System.Nullable(Of Rectangle), _
ByVal ParamArray () As BaseTransform _
)
public void Load(
System.IO.Stream ,
WicContainerFormat ,
System.int ,
System.Nullable<Rectangle> ,
params BaseTransform[]
)
Parameters
- stream
- The input stream.
- containerFormat
- The image container format; use Unknown to detect the format automatically.
- frameIndex
- Index of an image frame to read, pass 0 for image formats not supporting multiple frames.
- imageRect
- Clipping rectangle for the image after all transformations.
- transforms
- The transformation chain for the image that is being loaded.
See Also